package com.kingyea.app.market.userappmenu.dao;

import com.kingyea.app.market.userappmenu.bean.UserAppMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author hx
 * @version v1.0.0
 * @description UserAppMenuMapper
 * @date Created in 2018-04-24 11:42:24
 */
public interface UserAppMenuMapper {

    /**
     * 通过ID获取对象
     */
    UserAppMenu getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    void update(UserAppMenu obj);

    /**
     * 保存对象
     */
    void save(UserAppMenu obj);

    /**
     * 查询列表
     */
    List<UserAppMenu> list(UserAppMenu obj);

    List<Map> getDesktop(String userId);

    List<Map> getRegion(String UuserId);

    Integer deletesByAppCode(String appCode);
}
